RPE Upgrade StepsΒΆ

Notice: Support for Ubuntu 14 is depreciated. Upgrade to Ubuntu 16 from here. (It is required only if your current OS version is 14.)

  • Support for Ubuntu 14 is depreciated. Upgrade to Ubuntu 16 from here. (It is required only if your current OS version is 14.)

-- command to check ubuntu version:
lsb_release -a
  1. Delete following files from the 2nd level motadata folder:

    • motadata-rpe-upgrade.zip

    • upgrade.zip

    • upgrade

    • packages.zip

    • packages

    • motadata-rpe-upgrade.py

    • upgradelogger.py

    • upgradeutils.py

cd /motadata/motadata
rm -rf motadata-rpe-upgrade.zip
rm -rf upgrade.zip
rm -rf upgrade
rm -rf packages.zip
rm -rf packages
rm -rf motadata-rpe-upgrade.py
rm -rf upgradelogger.py
rm -rf upgradeutils.py
  1. Download motadata-rpe-upgrade.zip file and FTP the file to motadata server (2nd level motadata folder).

  2. Unzip motadata-rpe-upgrade.zip file.

    cd /motadata/motadata
    unzip motadata-rpe-upgrade.zip
    

Following files should be visible:

  • motadata-rpe-upgrade.py

  • packages.zip

  • upgradelogger.py

  • upgradeutils.py

  • upgrade.zip

  1. Add 775 permission to motadata-upgrade.py:

    cd /motadata/motadata
    chmod 775 motadata-rpe-upgrade.py
    
  2. Run upgrade command:

    cd /motadata/motadata
    ./motadata-rpe-upgrade.py <current_version> //for ex: ./motadata-rpe-upgrade.py 7.3.021
    
  3. Sync following folders from master server. You have to provide IP address and password of master server:

    • plugins

    • plugins-lib

    • device-conf

    //motadata will prompt to sync the files.
    //Type the IP address to sync the files.
    
    Please enter Motadata master ip to start sync: //type IP address here. e.g. 1.1.1.1
    
    //Press enter.
    Are you sure you want to continue connecting (yes/no)? //type yes.
    
    //Type the root user password of master server
    root@172.16.10.92's password: //type the password here. This password is to add the YML files.
    
    //Type the root user password of master server
    root@172.16.10.92's password: //type the password here. This password is to add the plugins-liv.
    
    //Type the root user password of master server
    root@172.16.10.92's password: //type the password here. This password is to add the plugins.
    
  4. Go to the system folder.

    cd /lib/systemd/system
    
  5. If your Ubuntu version is 16, add entries in motadata service:

    vi motadata.service
    
    --- use i command to edit -----
    ---- add a new line after Killmode = none ------
    
    
    LimitCORE=infinity
    LimitNOFILE=500000
    
    ---- press escape -------
    ----save using: wq!------
    
  6. Run the below command. This command is required every time you make changes in motadata.service.

    systemctl daemon-reload